import oAuth2Api from "@/api/declaration/oAuth2/oAuth2Api"
import httpRequest from "@/config/axios/httpRequest"


// 查询 token列表
export const getAccessTokenPage = (params: PageParam) => {
  return httpRequest.get(oAuth2Api.GetAccessTokenPage, {params})
}

// 删除 token
export const deleteAccessToken = (accessToken: string) => {
  return httpRequest.delete(oAuth2Api.DeleteOAuth2Client, {
    params: {
      accessToken
    }
  })
}
